<template>
	<view>
		<pet-list v-if="list.length > 0" :dataArray="list"></pet-list>
	</view>
</template>

<script>
	import {getUserlikes} from '@/common/api_user.js'
	import petList from '@/components/petList/index.vue'
	export default {
		name:'',
		components:{
			petList
		},
		data() {
			return {
				list:[]
			}
		},
		onLoad(option) {
			
		},
		onShow() {
			this.getUserlikes()
		},
		methods: {
			async getUserlikes() {
				const res = await getUserlikes({
					operation:1,
					busine:2
				})
				if (res.code == 200) {
					this.list = res.data
				}
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FFEEEE;
	}
	.item{
		overflow: hidden;
		image{
			border-radius: 0 0 50rpx 0;
			width: 100%;
			height: 300rpx;
		}
		.like-box{
			position: absolute;
			bottom: 30rpx;
			right: 20rpx;
			background-color: rgba(#000, 0.5);
			border-radius: 50rpx;
			padding: 5rpx 10rpx;
		}
	}
</style>
